#ifndef SECURITYALGORITHM_H
#define SECURITYALGORITHM_H

#include <cstdint>

#define GETBIT(x, y) ((x >> y) & 0x01)
#define BITTRANS(x) (GETBIT(x, 0) << 7 | GETBIT(x, 1) << 6 | GETBIT(x, 2) << 5 | GETBIT(x, 3) << 4 | GETBIT(x, 4) << 3 | GETBIT(x, 5) << 2 | GETBIT(x, 6) << 1 | GETBIT(x, 7))


#define D587_SEED_LEN 4

class SecurityAlgorithm
{
public:
    SecurityAlgorithm();
    void D587PSS(const uint8_t *seedText, uint8_t *keyText);
};

#endif // SECURITYALGORITHM_H
